﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class yhkonjian_yhControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Key"] != null || Session["CustomerId"] != null)
        {
            lblWelcome.Text = "欢迎, " + Session["CustomerName"].ToString();
            lnkbtnPwd.Visible = true;
            lnkbtnManage.Visible = true;
            lnkbtnLogout.Visible = true;

        }
    }

    protected void lnkbtnLogout_Click(object sender, EventArgs e)
    {
        Session.Clear();
        Response.Redirect("~/Default.aspx");
    }
}